package educationaladministrationsystem.CSM.Controller.StudentAndTeacher.Teacher;

import educationaladministrationsystem.Result.Result;
import educationaladministrationsystem.CSM.Mapper.Service.StudentAndTeacher.Teacher.TeacherPersonDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("Teacher/PersonData")
@RestController
public class TeacherPersonDataController {
    @Autowired
    private TeacherPersonDataService teacherPersonDataService;

    @GetMapping("/Information")
    public Result getInformation(String id) {
        return Result.success(teacherPersonDataService.getInformation(id));
    }
}
